package gria

import simpleauth.User

class GriaJob {
    GriaApplication application
    String resourceID
    String status
    static belongsTo = [owner:User]
    static hasMany = [readers:User, inputs:GriaFile, outputs:GriaFile, arguments:JobArgumentValue]
    Date created
    boolean outputReady = false;
    boolean finished = false;
    
    def static constraints = 
    {
        inputs(nullable:true)
        outputs(nullable:true)
        arguments(nullable:true)
    }
}
